(function() {
    var a = mobiscroll,
        b = a.$,
        c = a.presets.scroller;
    a.presetShort('image');
    c.image = function(a) {
        if (a.settings.enhance) {
            a._processMarkup = function(a) {
                var c = a.attr('data-icon');
                a.children().each(function(c, a) {
                    a = b(a);
                    if (a.is('img')) {
                        b('<div class="mbsc-img-c"></div>').insertAfter(a).append(a.addClass('mbsc-img'));
                    } else if (a.is('p')) {
                        a.addClass('mbsc-img-txt');
                    }
                });
                if (c) {
                    a.prepend('<div class="mbsc-ic mbsc-ic-' + c + '"></div');
                }
                a.html('<div class="mbsc-img-w">' + a.html() + '</div>');
                return a.html();
            };
        }
        return c.list.call(this, a);
    };
}());
